extends "../cTDW_5/cTDW_5.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "盾卫"
	lv = 3
	attCoe.atk = 12 / 8.5 * 2 / 3
	attCoe.maxHp = 1300 / 112.5 / 3
	attCoe.def = 100 / 15.0 / 3.0
	attCoe.mgiDef = 100 / 16.6 / 3.0

	addCdSkill("dw",7)
	addCdSkill("dw1",5)
	addSkillTxt("疗伤：回复（100+3%生命上限）点生命[cd:5秒]")
	addSkillTxt("举盾：嘲讽当前敌人9宫格内所有敌人，减伤+20%，持续4秒[cd:7秒]")

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "dw":
		cst("举盾","000000",position)
		addBuff(ctrl.b_sssh.new(2))
		var chas = getAllChas(1)
		var c = aiCha.cell
		for i in chas:
			if abs(i.cell.x - c.x) <= 1 && abs(i.cell.y - c.y) <= 1:
				i.aiCha = self

	if id == "dw1":
		cst("疗伤","000000",position)
		healCha(self,100 + att.maxHp*0.03)
